import Opt from '@/components/dt/info/Opt.js'
import ruleOpt from '@/biz/option/rule.js'

class UpdateOpt extends Opt {
  
  constructor() {
    super()
    this.build()
  }

  build() {
    this.createAll()
    this.opts.push(...this.all)
  }

  createAll() {
    this.all = [{
        title: '所属组织',
        key: 'orgName',
        text: {},
      },
      {
        title: '案场名称',
        key: 'housesName',
        text: {},
      },
      {
        key: 'settlementStatus',
        title: '财务状态',
        select: {
          key: 'financialStatus'
        },
        rules: [
          ruleOpt.required('请选择财务状态')
        ]
      },
    ]
  }
}

export default UpdateOpt
